<?php
	require_once(realpath(dirname(__FILE__)) . "/../../classes/Client.class.php");
	
	/* Substitutions de type parrain */
		
	function substitparrain($texte){
		global $id_parrain;
				
		$client = new Client();
		$client->charger_id($id_parrain);
		
		$texte = str_replace("#PARRAIN_EMAIL", "$client->email", $texte);
		
	
		
		return $texte;
	}
?>